<?php

swoole_timer_tick(2000, function($timerId) {
    echo '执行' . PHP_EOL;
});

swoole_timer_after(3000, function(){
    echo '3s后执行' . PHP_EOL;
});